﻿using System.ServiceModel;
using VideoServices.Services.Dto;
using VideoServices.Services.Response;

namespace VideoServices.Services.Interface
{
    [ServiceContract]
    public interface IDeliveryService
    {
        /// <summary>
        /// Creates the delivery.
        /// </summary>
        /// <param name="newDeliveryDto">The new delivery dto.</param>
        /// <param name="reportDeliveryStatusTo">The report delivery status to.</param>
        [OperationContract(IsOneWay = true)]
        void CreateDelivery(DeliveryDto newDeliveryDto, string reportDeliveryStatusTo);

        /// <summary>
        /// Gets the delivery by id.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        Response<DeliveryDto> GetDeliveryById(int id);
    }
}